Source Coding
Definitions: Part I
- $ \mathcal{D}^{*} $: The set of finite-length strings of symbols from D-ary(D symbols) alphabet $ \mathcal{D} $.
- Code / Source Code:
- Codeword:
- Length of a Codeword:
- Code is Nonsingular ⟺ Code is Injective:
Definitions: Part I
Extension of a Code: Finite length strings of $ \mathcal{X} $ to finite length strings of $ \mathcal{D} $. $$ \begin{aligned} C: \mathcal{X}^{*} &\mapsto \mathcal{D}^{*} \\ C(x_1 \cdots x_n) &= C(x_1) \cdots C(x_n) \end{aligned} $$
Code is Uniquely Decodable if Its extension is nonsingular:
- Code is Prefix-Free if no codeword is prefix of another codeword, and it is called Prefix Code or Instantaneous Code.